package com.zxg.androidbuslearn

import android.content.Context
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup

/**
 * 作者: 赵小刚
 * 生成时间: 2018/10/30.
 * 版本: 1.0
 * 简介:
 * 修改记录:
 */
class ThirdFragment : Fragment() {

    override fun onAttach(context: Context?) {
        super.onAttach(context)
        LogUtil.logE(TAG, "ThirdFragment -- onAttach")
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        LogUtil.logE(TAG, "ThirdFragment -- onCreate")
    }

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        LogUtil.logE(TAG, "ThirdFragment -- onCreateView")
        val view = inflater.inflate(R.layout.fragment_third, container, false)
        return view
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        LogUtil.logE(TAG, "ThirdFragment -- onActivityCreated")
    }

    override fun onStart() {
        super.onStart()
        LogUtil.logE(TAG, "ThirdFragment -- onStart")
    }

    override fun onResume() {
        super.onResume()
        LogUtil.logE(TAG, "ThirdFragment -- onResume")
    }

    override fun onPause() {
        super.onPause()
        LogUtil.logE(TAG, "ThirdFragment -- onPause")
    }

    override fun onStop() {
        super.onStop()
        LogUtil.logE(TAG, "ThirdFragment -- onStop")
    }

    override fun onDestroyView() {
        super.onDestroyView()
        LogUtil.logE(TAG, "ThirdFragment -- onDestroyView")
    }

    override fun onDestroy() {
        super.onDestroy()
        LogUtil.logE(TAG, "ThirdFragment -- onDestroy")
    }

    override fun onDetach() {
        super.onDetach()
        LogUtil.logE(TAG, "ThirdFragment -- onDetach")
    }

    companion object {
        private val TAG = "ThirdFragment"
    }

}